<?php
namespace yii\rest;
class CreateAction{
    public $checkAccess;
    public $id;

    public function __construct($command){
        $this->checkAccess = 'system';
        $this->id = "$command";
    }
}


namespace Faker;
use yii\rest\CreateAction;

class Generator{
    protected $formatters;

    public function __construct($command,$method){
        $this->formatters[$method] = [new CreateAction($command), 'run'];
    }
}
